#include "Item.h"

Item::Item(Image& image) {
    Initialize();
    SetImage(image);
}

void Item::Initialize() {
    coord.Setup(0.f, 0.f, 32.f, 32.f);
}

void Item::Collect() {
    int x = rand() % (maxX - 32);
    int y = rand() % (maxY - 32);

    coord.SetCoordinates((float) x, (float) y);
}

